//
//  BaseNavigationController.swift
//  gamlify
//
//  Created by Admin on 2024/12/8.
//

import UIKit

class BaseNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Hide the native navigation bar
        setNavigationBarHidden(true, animated: false)
        
        // Enable swipe-back gesture
        interactivePopGestureRecognizer?.delegate = nil
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        // Add custom navigation bar to the pushed view controller
        super.pushViewController(viewController, animated: animated)
    }
}
